{extend name="main" /}

{block name="body"}
<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
        <a><cite>{$param.admin_id|get_username}</cite></a>
        <a href="{:url('index',['admin_id'=>$param.admin_id])}"><cite>网站</cite></a>
        <a><cite>分配</cite></a>
    </div>
</div>
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <form action="{:request()->url()}" method="post" class="xn_ajax">
        <input type="hidden" name="admin_id" value="{$param.admin_id}">
        <div class="layui-form-item">
            <label class="layui-form-label">分配网站</label>
            <div class="layui-input-block">
                {foreach name="weblist" item="vo"}
                <input {if condition="in_array($vo.id,$web_ids)"}checked{/if} type="checkbox" name="web_ids[]" value="{$vo.id}" title="{$vo.title}">
                {/foreach}
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" lay-submit class="layui-btn">保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
{/block}